package com.interest.business.service;

import java.util.List;
import java.util.Map;

import com.interest.business.domain.InterestOrder;
import com.interest.business.domain.vo.OrderQueryVo;
import com.interest.business.outer.request.OrderCreateBean;
import com.interest.business.outer.request.OrderRefundBean;

/**
 * 订单记录Service接口
 * 
 * @author ruoyi
 * @date 2023-11-11
 */
public interface IInterestOrderService 
{
    /**
     * 查询订单记录
     * 
     * @param id 订单记录主键
     * @return 订单记录
     */
    public InterestOrder selectInterestOrderById(String id);

    /**
     * 查询订单记录列表
     * 
     * @param interestOrder 订单记录
     * @return 订单记录集合
     */
    public List<InterestOrder> selectInterestOrderList(OrderQueryVo interestOrder);

    /**
     * 创建订单
     * @param orderCreateBean
     * @return
     */
    public int createOrder(OrderCreateBean orderCreateBean);

    public int refundOrder(OrderRefundBean orderRefundBean);

     int createOrderV2(OrderCreateBean orderCreateBean);

    int refundOrderV2(OrderRefundBean orderRefundBean);
}
